package com.example.ccj.u.sqlite;

public class TableBean {

    public TableBean(){}

    public TableBean(String name,String type,int length,boolean isNull,boolean isKey){
        this.name = name;
        this.type = type;
        this.length = length;
        this.isKey = isKey;
        this.isNull = isNull;
    }

    public String name;
    public boolean isNull = false;
    public int length;
    public boolean isKey = false;
    public String type;

    @Override
    public String toString() {
        return "TableBean{" +
                "name='" + name + '\'' +
                ", isNull=" + isNull +
                ", length=" + length +
                ", isKey=" + isKey +
                '}';
    }

    public static final String CHAR = "varchar";
    public static final String INT = "integer";
    public static final String DATETIME = "datetime";
    public static final String TEXT = "TEXT";
    public static final String LONG = "long";
    public static final String DOUBLE = "REAL";

}
